<template>
  <div>
    <div class="act_img">
      <img src="@/assets/images/equity/caifu/18.png" @click="jump('7')" alt />
      <img src="@/assets/images/equity/caifu/19.png" @click="jump('8')" alt />
      <img src="@/assets/images/equity/caifu/2.png" @click="jump('1')" alt />
      <img src="@/assets/images/equity/caifu/3.png" @click="jump('2')" alt />
      <img src="@/assets/images/equity/caifu/4.png" @click="jump('3')" alt />
      <img src="@/assets/images/equity/caifu/5.png" @click="jump('4')" alt />
      <img src="@/assets/images/equity/caifu/6.png" @click="jump('5')" alt />
      <img src="@/assets/images/equity/caifu/7.png" @click="jump('6')" alt />
      <img src="@/assets/images/equity/caifu/20.png" @click="jump('9')" alt />
    </div>
  </div>
</template>
<script>
import weixin from '@/components/wx/wx.js';
import { baseUrl } from '@/config/env';
export default {
  data() {
    return {};
  },
  mounted() {
    this.initWxChat();
  },
  methods: {
    initWxChat() {
      const url = window.location.href.split('#')[0];
      const param = {
        title: '基金',
        desc: '',
        link:
          baseUrl + 'entrance/goto?redir=' + window.location.href.split('#')[1],
        imgUrl: 'http://img.580travel.com/youchu/jijin.png',
        localUrl: url
      };
      weixin.wxChat(this, param);
    },
    jump(page) {
      if (page === '1') {
        window.location.href =
          'https://mp.weixin.qq.com/s/lq4mTZrMkt2skJIqWbf9Uw';
      } else if (page === '2') {
        window.location.href =
          'https://mp.weixin.qq.com/s/NzBDmq_32d6SLOPhp4Burw';
      } else if (page === '3') {
        window.location.href =
          'https://x.eqxiu.com/s/0jHsPbkw?share_level=3&from_user=202002209d3b6adf&from_id=a39947dd-c&share_time=1583110448906&from=singlemessage&isappinstalled=0';
      } else if (page === '4') {
        window.location.href =
          'https://mp.weixin.qq.com/s/yCT1WHpq2HcbOxVqn0SW8w';
      } else if (page === '5') {
        window.location.href =
          'https://mp.weixin.qq.com/s/D54S-s40XUZhVX-t_pd02Q';
      } else if (page === '6') {
        window.location.href =
          'https://mp.weixin.qq.com/s/ctcSbiX279KFJXavcnzv9A';
      } else if (page === '7') {
        window.location.href =
          'https://i.eqxiu.com/s/IOJpmCcd?bt=yxy&eqrcode=1&share_level=1&from_user=20200205aaefbfa0&from_id=b64c008d-5&share_time=1580893992426';
      } else if (page === '8') {
        window.location.href =
          'https://q.eqxiu.com/s/lU53gOZA?eqrcode=1&share_level=1&from_user=94a322bb-3d6e-47e5-b998-a63af15522ac&from_id=1c5d6706-f&share_time=1580814673286';
      } else if (page === '9') {
        window.location.href =
          'https://mp.weixin.qq.com/s/e1b2X0ch0olqB13JtLVyAQ';
      }
    }
  },
  components: {}
};
</script>
<style lang="scss" scoped>
.act_img {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  img {
    width: 710px;
    margin-top: 30px;
  }
}
</style>
